package com.changgou.user.dao;

import com.changgou.user.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {
  @Update("UPDATE tb_user set points=points+#{points} where username =#{username}")
  void addPoints(@Param("points") Integer points, @Param("username") String username);
}
